﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ModelLayer
{
	[DataContract]
	public class Schedule
	{
		[DataMember]
		private int _id;
		[DataMember]
		private DateTime _time;
		[DataMember]
		private Movie _movie;
		[DataMember]
		private Room _room;
		[DataMember]
		private decimal _price;

		// *** Constructors ***
		public Schedule()
		{
			_id = 0;
			_time = new DateTime();
			_movie = null;
			_room = null;
			_price = 0;
		}
		public Schedule(int id)
		{
			_id = id;
			_time = new DateTime();
			_movie = null;
			_room = null;
			_price = 0;
		}
		public Schedule(int id, DateTime time, Movie movie, Room room, decimal price)
		{
			_id = id;
			_time = time;
			_movie = movie;
			_room = room;
			_price = price;
		}

		// *** Getters and setters *
		[DataMember]
		public int id
		{
			get { return _id; }
			set { _id = value; }
		}
		[DataMember]
		public DateTime time
		{
			get { return _time; }
			set { _time = value; }
		}
		[DataMember]
		public Movie movie
		{
			get { return _movie; }
			set { _movie = value; }
		}
		[DataMember]
		public Room room
		{
			get { return _room; }
			set { _room = value; }
		}
		[DataMember]
		public decimal price
		{
			get { return _price; }
			set { _price = value; }
		}
	}
}
